package com.hongan4d.system.controller;

import com.hongan4d.common.VO.CommonResult;
import com.hongan4d.system.service.UserInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 用户管理
 *
 * @author tang
 * @version 1.0
 * @date 2021/1/5 15:15
 */
@Api(value = "用户管理")
@RestController
@RequestMapping("/ProSystemUserInfo")
public class UserInfoController {

    @Autowired
    private UserInfoService userInfoService;

    @ApiOperation("获取全部用户数据")
    @GetMapping("/GetAll")
    public CommonResult GetAll() {
        return userInfoService.GetAll();
    }
}
